package com.wyw.service.impl;

import com.wyw.entity.UserT;
import com.wyw.mapper.IUserMapper;
import com.wyw.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {
    @Autowired
    private IUserMapper userMapper;

    @Override
    public UserT findByName(String name) {
        return userMapper.findByName(name);
    }

    @Override
    public UserT findById(Integer id) {
        return userMapper.findById(id);
    }
}
